<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>Beauty Eleven</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/layui/css/custom.css}" media="all">
    <script th:src="@{/layui/layui.js}" charset="utf-8"></script>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="menu-logo"> Beauty Eleven</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left" style="padding:0 0">
            <!-- web、移动端显示 -->
            <li class="layui-nav-item layui-show-xs-inline-block " lay-header-event="menuLeft">
                <a href="javascript:;"> <i id="leftEnumIcon" class="layui-icon layui-icon-shrink-right"></i></a>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;" th:if="${session.user!=null}">

                    <!--<img th:src="@{/layui/images/face/0.gif}" class="layui-nav-img">-->
                    <img th:src="@{/img/c.png}" class="layui-nav-img">
                    <span th:text="${session.user.userName}"></span>
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;">基本资料</a></dd>
                    <dd><a href="javascript:;">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="/user/logout" }>退出</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">会员管理</a>
                    <dl class="layui-nav-child">
                        <dd class="layui-this"><a target="content_iFrm" href="/member/manage">会员信息</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">财务管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/recharge-record/manage" target="content_iFrm">充值记录</a></dd>
                        <dd><a href="/recharge-times/manage" target="content_iFrm">充次记录</a></dd>
                        <dd><a href="/consumption-records/manage" target="content_iFrm">金额消费记录</a></dd>
                        <dd><a href="/consumption-times/manage" target="content_iFrm">计次消费记录</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed"><a target="content_iFrm" href="/item/manage">项目管理</a>
                </li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">营收看板</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/cost/manage" target="content_iFrm">成本记录</a></dd>
                        <dd><a href="/consumption-times/manage" target="content_iFrm">销售统计</a></dd>
                        <dd><a href="/report/dashboard" target="content_iFrm">收支报表</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <span id="loginUser" th:text="${session.user.name}" style="display: none"></span>
        <!-- 内容主体区域 -->
        <iframe name="content_iFrm" frameborder="0" class="larry-iframe" style="width: 100%; height: 100%;"
                src="/member/manage"
        ></iframe>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © Beauty Eleven 版权所有 - 遇见最美的自己 一如对世界的初见
    </div>
</div>

<script>
    var _hmt = _hmt || [];
    (function () {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?d214947968792b839fd669a4decaaffc";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>
</body>
<script th:src="@{/js/index/index.js}"></script>
</html>
